import http from '../utils/request'
// 班级封装的接口
// 老师列表
const teacherList =(data:any)=>{
    return http.get("teacher/list",data)
}
// 老师添加
const teacherAdd =(data:any)=>{
    return http.post("teacher/add",data)
}
// 老师删除
const teacherDelone =(data:any)=>{
    return http.get("teacher/delete",data)
}
// 老师修改
const teacherUpdata =(data:any)=>{
    return http.post("teacher/changePass",data)
}
//获取部门列表
const departmentList =(data:any)=>{
    return http.post("department/list",data)
}
// 获取角色列表
const roleList =(data:any)=>{
    return http.get("role/list",data)
}
export default{
    teacherList,
    teacherAdd,
    teacherDelone,
    departmentList,
    teacherUpdata,
    roleList    
}